package com.ruoyi.logistic.enums;

/**
 * 结算类型
 *
 * @author ruoyi
 */
public enum NetworkUndertakeCentreAssessmentDetailEnum
{
    statisticsDate("statisticsDate", "统计日期"),
    transportCode("transportCode", "运单号"),
    assessmentAmount("assessmentAmount", "考核金额"),
    firstOrderType("firstOrderType", "一级类型"),
    secondOrderType("secondOrderType", "二级类型"),
    scanType("scanType", "扫描类型"),
    scanner("scanner", "扫描员"),
    assessmentReasonRemark("assessmentReasonRemark", "考核原因备注"),
    orderClient("orderClient", "订单客户")
    ;

    private final String code;
    private final String info;

    NetworkUndertakeCentreAssessmentDetailEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (NetworkUndertakeCentreAssessmentDetailEnum value : NetworkUndertakeCentreAssessmentDetailEnum.values()) {
            if (value.code.equals(code)){
                return value.info;
            }
        }
        return "";
    }
}
